package com.zjun.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 幂等属性配置
 */
@Data
@ConfigurationProperties(prefix = IdempotentProperties.PREFIX)
public class IdempotentProperties {
    public static final String PREFIX = "framework.idempotent.token";

    /**
     * Token幂等Key前缀
     */
    private String prefix;

    /**
     * Token申请后过期时间
     */
    private Long timeout;
}
